﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace sp.portal
{
    public class ConsolePortal
    {
        public void Run()
        {
            Console.Write("Nachricht: ");
            var nachricht = Console.ReadLine();
            this.OnText(nachricht);
        }

        public void ProcessText(string text)
        {
            Console.WriteLine("Empfangen: {0}", text);
        }

        public event Action<string> OnText;
    }
}
